package com.mystudy.springcloud.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mystudy.springcloud.domain.Order;
import org.apache.ibatis.annotations.Param;

public interface OrderDao extends BaseMapper<Order> {
	/**
	 * @功能: 创建订单
	 */
	void createOrder(Order order);

	/**
	 * @功能: 修改订单状态 - 从0改为1
	 */
	void updateOrderStatue(@Param("userId") Long userId, @Param("status") Integer status);
}
